<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://shiro.apache.org/tags" prefix="shiro" %>
<html>
<head>
    <title>正式学员</title>

    <!--引入公共的easyui文件头-->
    <%@include file="/WEB-INF/views/commons/common_easyui.jsp" %>

    <script type="text/javascript" src="/static/js/system/professionalStuent.js"></script>
</head>
<body>
<!--begin信息列表-->
<table id="professionalStuent_datagrid"></table>
<!--end信息列表-->

<!--begin左上角工具栏-->
<div id="professionalStuent_tb">
    <div>
        <shiro:hasPermission name="professionalStuent:update">
            <a href="javascript:;" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true"
               data-cmd="edit">编辑</a>
        </shiro:hasPermission>

        <a href="javascript:;" class="easyui-linkbutton" data-options="iconCls:'icon-large-smartart',plain:true"
           data-cmd="watch">查看</a>
        <a href="javascript:;" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true"
           data-cmd="reload">刷新</a>
    </div>
    <div>
        <!--高级查询-->
        关键字:<input class="easyui-textbox" style="width: 150px" id="keywords" name="keywords"
                   prompt="关键字:姓名/电话"/>

        班级: <input class="easyui-combobox" style="width: 150px" id="interestClass" name="interestClass" prompt="所在班级"
                   data-options="
                                     url:'/grade/listAll',
                                        valueField: 'id',
                                        textField: 'name'
                                       "/>
        入学时间: <input type="text" class="easyui-datebox" id="beginDate" name="beginDate" prompt="请输入开始时间"/> -
        <input type="text" class="easyui-datebox" id="endDate" name="endDate" prompt="请输入结束时间"/>
        <a href="javascript:;" class="easyui-linkbutton" data-options="iconCls:'icon-search',plain:true"
           data-cmd="query">查询</a>
    </div>
    <div align="right">
        <shiro:hasPermission name="transferRecord:save">
            <a href="javascript:;" class="easyui-linkbutton" iconCls="icon-add" plain="true" id="transfer"
               data-cmd="transfer">转班</a>
        </shiro:hasPermission>

        <shiro:hasPermission name="professionalStuent:ouit">
            <a href="javascript:;" class="easyui-linkbutton" iconCls="icon-edit" plain="true" id="suspend"
               data-cmd="ouit">休学</a>
        </shiro:hasPermission>

        <shiro:hasPermission name="professionalStuent:goBack">
            <a href="javascript:;" class="easyui-linkbutton" iconCls="icon-edit" plain="true" id="goBack"
               data-cmd="goBack">复学</a>
        </shiro:hasPermission>

        <shiro:hasPermission name="leaveStudent:changeState">
            <a href="javascript:;" class="easyui-linkbutton" iconCls="icon-edit" plain="true" id="leave"
               data-cmd="leave">流失</a>
        </shiro:hasPermission>
    </div>
</div>
<!--end左上角工具栏-->

</div>
<%--end--%>

<!--begin添加/编辑对话框-->
<div id="professionalStuent_dialog" align="center">
    <form id="professionalStuent_form" method="post">
        <table style="margin-top: 20px;">
            <input type="hidden" name="id" id="professionalStuentId">
            <tr>
                <td>学员名</td>
                <td><input class="easyui-textbox" name="name"></td>
                <td>年龄</td>
                <td><input class="easyui-textbox" name="age"></td>
                <td>性别</td>
                <td><input class="easyui-combobox" name="gender" data-options="data: [{
                        label: '男',
                        value: '0'
                    },{
                        label: '女',
                        value: '1'
                    }], textField:'label',valueField:'value',panelHeight:'auto'"></td>
            </tr>
            <tr>
                <td>电话</td>
                <td><input class="easyui-textbox" name="tell"></td>
                <td>QQ</td>
                <td><input class="easyui-textbox" name="qq"></td>
                <td>邮箱</td>
                <td><input class="easyui-textbox" name="email"></td>
            </tr>
            <tr>
                <td>学校或者培训机构名称</td>
                <td><input class="easyui-textbox" name="school"></td>
                <td>学校客户</td>
                <td><input class="easyui-combobox" name="schoolCustomer.id" id="schoolCustomerId" panelHeight="auto"
                           prompt="学校客户"
                           data-options="
                                     url:'/bigClient/listAll',
                                        valueField: 'id',
                                        textField: 'schoolName'
                                       "></td>
                <td>学历</td>
                <td><input class="easyui-combobox" panelHeight="auto" name="education.id" id="educationId" prompt="学历"
                           data-options="
                                     url:'/dataDictionary1/selectDataDictionaryItemsBySn?sn=record',
                                        valueField: 'id',
                                        textField: 'name'
                                       "></td>
            </tr>
            <tr>
                <td>地址</td>
                <td><input class="easyui-textbox" name="address"></td>
                <td>学员来源</td>
                <td><input class="easyui-combobox" panelHeight="auto" name="customerSource.id" id="customerSourceId"
                           prompt="客户来源"
                           data-options="
                                     url:'/dataDictionary1/selectDataDictionaryItemsBySn?sn=customerSource',
                                        valueField: 'id',
                                        textField: 'name'
                                       "></td>
                <td>学员状态</td>
                <td><input class="easyui-combobox" panelHeight="auto" name="currentState" id="currentStateId"
                           prompt="学员状态" data-options="data: [{
                        label: '线下',
                        value: '0'
                    },{
                        label: '线上',
                        value: '1'
                    }], textField:'label',valueField:'value',panelHeight:'auto'"></td>
            </tr>
            <tr>
                <td>工作年龄</td>
                <td><input class="easyui-textbox" name="workSeniority" prompt="工作年龄"></td>
                <td>所在班级</td>
                <td><input class="easyui-combobox" panelHeight="auto" name="interestClass.id" id="interestClassId"
                           prompt="所在班级"
                           data-options="
                                     url:'/grade/listAll',
                                        valueField: 'id',
                                        textField: 'name'
                                       "></td>
                <td>支付方式</td>
                <td><input class="easyui-combobox" panelHeight="auto" name="payment.id" id="paymentId" prompt="支付方式"
                           data-options="
                                     url:'/dataDictionary1/selectDataDictionaryItemsBySn?sn=paymentDethod',
                                        valueField: 'id',
                                        textField: 'name'
                                       "></td>
            </tr>
            <tr>
                <td>销售人员</td>
                <td><input class="easyui-combobox" panelHeight="auto" prompt="销售人员" name="marketer.id" id="marketerId"
                           data-options="
                                     url:'/employee/listAll',
                                        valueField: 'id',
                                        textField: 'username'
                                       "></td>
                <td>学员意向校区</td>
                <td><input class="easyui-combobox" panelHeight="auto" prompt="意向校区" name="interestCampu.id"
                           id="interestCampuId" data-options="
                                     url:'/dataDictionary1/selectDataDictionaryItemsBySn?sn=intentionDistrict',
                                        valueField: 'id',
                                        textField: 'name'
                                       "></td>
                <td>入学时间</td>
                <td><input class="easyui-datebox" prompt="入学时间" name="positiveDate"></td>
            </tr>
            <tr>
                <td>身份证号码</td>
                <td><input class="easyui-textbox" prompt="身份证号码" name="idNumber"></td>
                <td>紧急联系人</td>
                <td><input class="easyui-textbox" prompt="紧急联系人" name="emergencyman"></td>
                <td>紧急人联系电话</td>
                <td><input class="easyui-textbox" prompt="紧急人联系电话" name="emergencytel"></td>
            </tr>
            <tr>
                <td>就业意向</td>
                <td><input class="easyui-combobox" panelHeight="auto" prompt="就业意向" name="intentionjob.id"
                           id="intentionjobId" data-options="

                                     url:'/dataDictionary1/selectDataDictionaryItemsBySn?sn=employment',
                                        valueField: 'id',
                                        textField: 'name'
                                       "></td>
                <td>工作经历</td>
                <td><input class="easyui-textbox" prompt="工作经历" name="workExperience"></td>
                <td>状态</td>
                <td><input class="easyui-combobox" panelHeight="auto" prompt="学员状态" name="state" data-options="data: [{
                        label: '流失',
                        value: '0'
                    },{
                        label: '在读',
                        value: '1'
                    },{
                        label: '转班中',
                        value: '2'
                    },{
                        label: '休学',
                        value: '3'
                    }], textField:'label',valueField:'value',panelHeight:'auto'"></td>
            </tr>
        </table>
    </form>
</div>
<!--end添加/编辑对话框-->

<!--begin流失学员对话框-->
<div id="leaveStudent_dialog" align="center">
    <form id="leaveStudent_form" method="post">
        <table style="margin-top: 20px;">
            <input class="easyui-textbox" type="hidden" name="professionalStudent.id">
            <tr>
                <td>学员姓名</td>
                <td><input class="easyui-textbox" name="professionalStudent.name"></td>
            </tr>
            <tr>
                <td>就读班级</td>
                <td><input class="easyui-combobox" name="grade.id" data-options="
                                     url:'/grade/listAll',
                                        valueField: 'id',
                                        textField: 'name'
                                       "></td>
            </tr>
            <tr>
                <td>流失时间</td>
                <td><input class="easyui-datebox" name="refunddate"></td>
            </tr>
            <tr>
                <td>流失天数</td>
                <td><input class="easyui-textbox" name="schooltime"></td>
            </tr>
            <tr>
                <td>流失阶段</td>
                <td><input class="easyui-combobox" name="lostState" data-options="data: [{
                        label: '基础班',
                        value: '0'
                    },{
                        label: '大神班',
                        value: '1'
                    }], textField:'label',valueField:'value',panelHeight:'auto'"
                ></td>
                ></td>
            </tr>
            <tr>
                <td>是否退款</td>
                <td><input class="easyui-combobox" name="isRefund"
                           data-options="data: [{
                        label: '否',
                        value: '0'
                    },{
                        label: '是',
                        value: '1'
                    }], textField:'label',valueField:'value',panelHeight:'auto'"
                ></td>
            </tr>
            <tr>
                <td>退款金额</td>
                <td><input class="easyui-textbox" name="refundAmount"></td>
            </tr>
            <%--<tr>
                <td>退款方式</td>
                <td><input class="easyui-combobox" name="payment" data-options="
                                     url:'/dataDictionary1/selectDataDictionaryItemsBySn?sn=paymentDethod',
                                        valueField: 'id',
                                        textField: 'name'
                                       "></td>
            </tr>
            <tr>
                <td>单据</td>
                <td><input class="easyui-textbox" name="invoices"></td>
            </tr>--%>
            <tr>
                <td>退学原因</td>
                <td><input class="easyui-textbox" style="height:100px"

                    name="leavereasion"></td>
            </tr>
        </table>
    </form>
</div>
<!--end添加/编辑对话框-->

<!--begin学员转班对话框transfer-->
<div id="transferRecord_dialog" align="center">
    <form id="transferRecord_form" method="post">
        <table style="margin-top: 20px;">

            <input type="hidden" name="professionalStudent.id">

            <tr>
                <td>学员姓名</td>
                <td><input class="easyui-textbox" name="professionalStudent.name"></td>
            </tr>
            <tr>
                <td>就读班级</td>
                <td><input class="easyui-combobox" name="oldgrade.id" id="oldgrade"
                           data-options="
                                     url:'/grade/listAll',
                                        valueField: 'id',
                                        textField: 'name'
                                       "
                ></td>
            </tr>
            <tr>
                <td>目标班级</td>
                <td><input class="easyui-combobox" name="newgrade.id" id="newgrade"
                           data-options="
                                     url:'/grade/listAll',
                                        valueField: 'id',
                                        textField: 'name'
                                       "
                ></td>
            </tr>
        </table>
    </form>
</div>
<!--end学员转班对话框transferrecord-->

<!--begin添加/编辑对话框底部按钮-->
<div id="professionalStuent_bb">
    <a href="javascript:;" class="easyui-linkbutton" plain="true" iconCls="icon-save" data-cmd="save">保存</a>
    <a href="javascript:;" class="easyui-linkbutton" plain="true" iconCls="icon-cancel" data-cmd="cancel">取消</a>
</div>
<!--end添加/编辑对话框底部按钮-->

<!--begin流失学员对话框底部按钮-->
<div id="leaveStudent_bb">
    <a href="javascript:;" class="easyui-linkbutton" plain="true" iconCls="icon-save" data-cmd="save_leave">保存</a>
    <a href="javascript:;" class="easyui-linkbutton" plain="true" iconCls="icon-cancel" data-cmd="cancel_leave">取消</a>
</div>
<!--end流失学员对话框底部按钮-->

<!--begin转班学员对话框底部按钮-->
<div id="transferRecord_bb">
    <a href="javascript:;" class="easyui-linkbutton" plain="true" iconCls="icon-save"
       data-cmd="save_transferRecord">保存</a>
    <a href="javascript:;" class="easyui-linkbutton" plain="true" iconCls="icon-cancel"
       data-cmd="cancel_transferRecord">取消</a>
</div>
<!--end转班学员对话框底部按钮-->

</body>
</html>
